package com.cqu.lpss.service.impl;

import com.cqu.lpss.mapper.AuthoritiesMapper;
import com.cqu.lpss.pojo.Authorities;
import com.cqu.lpss.service.AuthoritiesInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AuthoritiesImpl implements AuthoritiesInterface {
    @Autowired
    AuthoritiesMapper authoritiesMapper;
    @Override
    public List<Authorities> listAll() {
        List<Authorities> all_list = authoritiesMapper.listAll();
        return all_list;
    }

    @Override
    public List<Authorities> listProf() {
        List<Authorities> prof_list = authoritiesMapper.listProf();
        return prof_list;
    }
}
